FROM openjdk:17-jdk-alpine
#openjdk:11
#openjdk:11-jre-slim

ENV TZ=Asia/Shanghai

COPY target/*.jar /z-maotai-api.jar
#地址映射
CMD ["--server.port=8088"]
#对外暴露端口
EXPOSE 8088
#执行命令
ENTRYPOINT ["java",
"-Duser.timezone=GMT+08",
"-jar",
"/z-maotai-api.jar --publickey=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJtBObiWC804sNVczbOmv70Ios4jxbWvfP0rwcStKD6AG4/qC5WETM/3I5TkhmAEL5gKWgUwGyHs+BcT/aWwZNUCAwEAAQ=="]

# docker save -o app.tar dns:2
#"registry-mirrors": ["https://mdqtqrd6.mirror.aliyuncs.com"],



#        "https://do.nark",
#            "https://n751qyex.mirror.aliyuncs.com",
#            "https://mdqtqrd6.mirror.aliyuncs.com",
#            "http://hub-mirror.c.163.com",
#            "https://registry.docker-cn.com"